# 获取banner值
import pytest

from utils.log_util import logger
from utils.mysql_util import db


@pytest.fixture()
def banner_num():
    sql = "SELECT COUNT(1) AS banner_num FROM goods_banner;"
    result = db.select_db_one(sql)
    logger.info(f'sql语句执行结果：{result}')
    return result['banner_num']
